﻿@model IEnumerable<kxcxw.Data.Entities.AnnouncementInfo>
<div class="noticebox line_01" id="Saletopid">
    @{ IList<kxcxw.Data.Entities.SysItemDetial> lstPmTypes = ViewBag.AnnouncementTypes; }
    <ul class="notice_header">
        @{int i = 0;
          foreach (kxcxw.Data.Entities.SysItemDetial item in lstPmTypes)
          {
            <li class="@(i == 0 ? "current" : "")">@item.itemDetialName</li>
                                              i++;
          }
        }
    </ul>
    @{int j = 0;
      foreach (kxcxw.Data.Entities.SysItemDetial item in lstPmTypes)
      {
          List<kxcxw.Data.Entities.AnnouncementInfo> listpm = (List<kxcxw.Data.Entities.AnnouncementInfo>)ViewData[item.ItemDeitalID];
          int listcount = listpm.Count;
        <ul class="notice_content" style="@(j == 0 ? "display: block;" : "display:none")">
            @if (listcount > 0)
            {
                int q = 0;
                foreach (kxcxw.Data.Entities.AnnouncementInfo info in listpm)
                {
                    q++;
                <li class="@(listcount == q ? "end question" : "question")">@info.AnnouncementContent</li>
                }
            }
        </ul>
            j++;

      }
    }
</div>
<script src="@Url.Content("~/Scripts/AnnouncementInfo.js")" type="text/javascript"></script>
